package jwdt.xadmin.rskq.bean;

import jwdt.xadmin.system.bean.TUser;

import com.ezerg.db.Jdb;
import com.ezerg.db.annotation.Column;
import com.ezerg.db.annotation.Table;

@Table(name="t_kq_qjsq", keys={"id"}, comment="")
public class TKqqj implements java.io.Serializable {

	private static final long serialVersionUID = 1L;

	@Column(value="id", comment="")
	private String id;
				
	@Column(value="leader", comment="审批人")
	private String leader;

	@Column(value="sdatetime", comment="开始时间")
	private String sdatetime;

	@Column(value="edatetime", comment="结束时间")
	private String edatetime;
	
	@Column(value="reson", comment="加班原因")
	private String reson;
	
	@Column(value="leavetype", comment="请假类型")
	private Integer leavetype;
	
	@Column(value="depid", comment="加班部门")
	private Integer depid;
	
	@Column(value="applicant", comment="申请人")
	private Integer applicant;

	@Column(value="odatetime", comment="申请时间")
	private String odatetime;
	
	@Column(value="flag", comment="状态")
	private String flag;
	
	@Column(value="leaderreson", comment="上级主管意见")
	private String leaderreson;
	
	@Column(value="ownerreson", comment="公司领导意见")
	private String ownerreson;

	public String getApplicantname() {
		TUser user = (TUser)Jdb.get().get(TUser.class, leader);
		if(user == null) {
			return "";
		} else {
			return user.getFullname();
		}
	}
	
	public String getLeadername() {
		TUser user = (TUser)Jdb.get().get(TUser.class, leader);
		if(user == null) {
			return "";
		} else {
			return user.getFullname();
		}
	}
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getLeader() {
		return leader;
	}

	public void setLeader(String leader) {
		this.leader = leader;
	}

	public String getSdatetime() {
		return sdatetime;
	}

	public void setSdatetime(String sdatetime) {
		this.sdatetime = sdatetime;
	}

	public String getEdatetime() {
		return edatetime;
	}

	public void setEdatetime(String edatetime) {
		this.edatetime = edatetime;
	}

	public String getReson() {
		return reson;
	}

	public void setReson(String reson) {
		this.reson = reson;
	}

	public Integer getLeavetype() {
		return leavetype;
	}

	public void setLeavetype(Integer leavetype) {
		this.leavetype = leavetype;
	}

	public Integer getDepid() {
		return depid;
	}

	public void setDepid(Integer depid) {
		this.depid = depid;
	}

	public Integer getApplicant() {
		return applicant;
	}

	public void setApplicant(Integer applicant) {
		this.applicant = applicant;
	}

	public String getOdatetime() {
		return odatetime;
	}

	public void setOdatetime(String odatetime) {
		this.odatetime = odatetime;
	}

	public String getFlag() {
		return flag;
	}

	public void setFlag(String flag) {
		this.flag = flag;
	}

	public String getLeaderreson() {
		return leaderreson;
	}

	public void setLeaderreson(String leaderreson) {
		this.leaderreson = leaderreson;
	}

	public String getOwnerreson() {
		return ownerreson;
	}

	public void setOwnerreson(String ownerreson) {
		this.ownerreson = ownerreson;
	}

	
	
}
